package ui.component {
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	
	import globals.Global;
	
	public class ImageButton extends Button {
		
		private var image:Bitmap;

		public function ImageButton(imageUrl:String, upData:BitmapData, overData:BitmapData, outData:BitmapData, handler:Function) {
			super(upData, overData, outData, handler);
			
			image = new Bitmap(Global.assetsManager.getIconBitmapData(imageUrl));
			addChild(image);
		}
	}
}